package com.demo.controller;

import com.demo.dto.MessageDTo;
import com.demo.pojo.CommonResponseVo;
import com.demo.service.MsgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author oyz
 */
@Controller
@RequestMapping("msg")
public class MsgController {

    @Autowired
    private MsgService msgService;


    public <T> CommonResponseVo sendMsg(MessageDTo messageDTo){

        CommonResponseVo response =  msgService.sendMsg(messageDTo);
        return response;
    }
}
